import request from '@/utils/request'

export default{
    login(loginDto){
        return request({
            url : '/admin-login/oauth/token?grant_type=password&client_id=client&client_secret=secret',
            method : 'post',
            data : loginDto,
            headers: { 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8'}
        })
    },
    register(registerDto){
        return request({
            url : '/admin-login/enroll/register',
            method : 'post',
            data : registerDto
        })
    },
    getCaptcha(){
        return request({
            url : '/admin-login/enroll/mathCaptcha/666',
            method : 'get'
        })
    }
}
